﻿#region Using References

using Beaker.OpenCube.Textures;
using GalaSoft.MvvmLight.Messaging;

#endregion

namespace Beaker.OpenCube.WorldViewer.Messages
{
	/// <summary>
	/// Sent when the texture pack has changed
	/// </summary>
	public sealed class TexturePackChangedMessage
		: MessageBase
	{
		private readonly ITexturePack _newTexturePack;

		public TexturePackChangedMessage( ITexturePack newTexture )
		{
			_newTexturePack = newTexture;
		}

		/// <summary>
		/// Gets the new texture pack.
		/// </summary>
		/// <value>
		/// The new texture pack.
		/// </value>
		public ITexturePack NewTexturePack
		{
			get { return _newTexturePack; }
		}
	}
}
